package com.scau.hwadee.examination.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.scau.hwadee.examination.entity.Majorplanversion;
import com.scau.hwadee.examination.mapper.MajorplanversionMapper;
import com.scau.hwadee.examination.service.ProfessionalPlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: YHX
 * @date: 2019/7/28 19:53
 * @description:
 */
@Service
public class ProfessionalPlanServiceImpl implements ProfessionalPlanService {

    @Autowired
    private MajorplanversionMapper majorplanversionMapper;

    @Override
    public PageInfo<Majorplanversion> getAllMajorPlanVersion(int pageNum, int pageSize) {
        PageHelper.startPage(pageNum, pageSize);
        return new PageInfo<>(majorplanversionMapper.listAllMajorPlanVersion(pageNum, pageSize));
    }
}
